package com.example.base.adapter;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.PagerAdapter;

import java.util.List;

public class SystemTwoViewpager extends FragmentPagerAdapter {
  public List<Fragment> mFragmentList;

  public SystemTwoViewpager(FragmentManager fm, List<Fragment> fragments) {

    super(fm);
    this.mFragmentList = fragments;
  }


  @Override
  public Fragment getItem(int position) {
    return mFragmentList.get(position);
  }

  @Override
  public int getCount() {
    return mFragmentList.size();
  }

}
